using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeostatisticalAnalystTools._WorkingwithGeostatisticalLayers
{
    /// <summary>
    /// <para>Areal Interpolation Layer To Polygons</para>
    /// <para>Reaggregates the predictions of an Areal Interpolation layer to a new set of polygons.</para>
    /// <para>将“面插值”图层的预测聚合为一组新的面。</para>
    /// </summary>    
    [DisplayName("Areal Interpolation Layer To Polygons")]
    public class ArealInterpolationLayerToPolygons : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ArealInterpolationLayerToPolygons()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_areal_interpolation_layer">
        /// <para>Input areal interpolation geostatistical layer</para>
        /// <para>Input geostatistical layer resulting from an Areal Interpolation model.</para>
        /// <para>由面插值模型生成的输入地统计图层。</para>
        /// </param>
        /// <param name="_in_polygon_features">
        /// <para>Input polygon features</para>
        /// <para>The polygons where predictions and standard errors will be aggregated.</para>
        /// <para>将聚合预测和标准误差的多边形。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output polygon feature class</para>
        /// <para>The output feature class containing the aggregated predictions and standard errors for the new polygons.</para>
        /// <para>包含新面的聚合预测和标准误差的输出要素类。</para>
        /// </param>
        public ArealInterpolationLayerToPolygons(object _in_areal_interpolation_layer, object _in_polygon_features, object _out_feature_class)
        {
            this._in_areal_interpolation_layer = _in_areal_interpolation_layer;
            this._in_polygon_features = _in_polygon_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Geostatistical Analyst Tools";

        public override string ToolName => "Areal Interpolation Layer To Polygons";

        public override string CallName => "ga.ArealInterpolationLayerToPolygons";

        public override List<string> AcceptEnvironments => ["extent", "geographicTransformations", "outputCoordinateSystem", "parallelProcessingFactor", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_areal_interpolation_layer, _in_polygon_features, _out_feature_class, _append_all_fields.GetGPValue()];

        /// <summary>
        /// <para>Input areal interpolation geostatistical layer</para>
        /// <para>Input geostatistical layer resulting from an Areal Interpolation model.</para>
        /// <para>由面插值模型生成的输入地统计图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input areal interpolation geostatistical layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_areal_interpolation_layer { get; set; }


        /// <summary>
        /// <para>Input polygon features</para>
        /// <para>The polygons where predictions and standard errors will be aggregated.</para>
        /// <para>将聚合预测和标准误差的多边形。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input polygon features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_polygon_features { get; set; }


        /// <summary>
        /// <para>Output polygon feature class</para>
        /// <para>The output feature class containing the aggregated predictions and standard errors for the new polygons.</para>
        /// <para>包含新面的聚合预测和标准误差的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output polygon feature class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Append all fields from input features</para>
        /// <para><xdoc>
        ///   <para>Determines whether all fields will be copied from the input features to the output feature class.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—All fields from the input features will be copied to the output feature class. This is the default.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Only the feature ID value will be copied, and it will be named Source_ID on the output feature class.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>确定是否将所有字段从输入要素复制到输出要素类。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 输入要素中的所有字段都将复制到输出要素类。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>未选中 - 仅复制要素 ID 值，并在输出要素类上将其命名为 Source_ID。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Append all fields from input features")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _append_all_fields_value _append_all_fields { get; set; } = _append_all_fields_value._true;

        public enum _append_all_fields_value
        {
            /// <summary>
            /// <para>ALL</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ALL")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>FID_ONLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FID_ONLY")]
            [GPEnumValue("false")]
            _false,

        }

        public ArealInterpolationLayerToPolygons SetEnv(object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object parallelProcessingFactor = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, parallelProcessingFactor: parallelProcessingFactor, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}